var uid, ws, title, money;
document.addEventListener('plusready', function(){
	uid = plus.storage.getItem('uid');
	ws = plus.webview.currentWebview();
	title = ws.title;
	money = ws.money;
	console.log(uid+" "+title+" "+money);
	$('.mui-title').text(title);
	if(title == '提现'){
		$('.mui-h5').text('您当前可提现金额'+money+'元');
		$('label').text('提现金额');
	}else{
		$('label').text('充值金额');
	}
	//点击下一步
	$('.deposit-btn').on('tap', function(){
		var jine = $('.money').val();
		if(!jine.match(m)){
			toast('金额错误');return;
		}
//		console.log(jine+" "+money+" "+title);
		if(parseFloat(jine) > parseFloat(money) && title == '提现'){
			toast('您的余额不足');return;
		}
		var url = title == '提现' ? 'me-jf-withdraw-deposit-2.html' : 'me-jf-withdraw-czhi.html';
		goNewPage(url,{money:jine, spage:ws.id})
	})
}, false)